package com.dyrs.delaytaskservice.entity;


import java.util.Date;

/**
 * Description: 任务
 * Version: 1.0
 * Create Date Time: 2020-10-27
 * Update Date Time:
 * Author: 孙付存
 * E-Mail: 874878489@qq.com
 * @see
 */
public class Task {
    private Integer id;
    private String code;    //任务code
    private Integer type;   //类型 1延迟,2定时
    private Long delayTime; //延迟时间
    private String delayTimeUnit; //延迟时间单位 默认分钟
    private Date timingTime; //定时执行时间
    private String extCode;    //外部code
    private String description; //描述
    private String callBackApi; //回调接口api
    private String callBackTopic; //回调消息kakfa
    private String callBackParam; //回调参数 json字符串

    private Integer status; //状态  0未执行 1成功 2失败
    private Date execTime; //执行时间
    private String execMessage; //执行信息

    private Boolean isDeleted = false; //是否删除(非物理)
    private Date dateCreated; //创建时间
    private Date lastUpdated;  //修改时间
}
